import request from '@/utils/request'

// 查询年卡阵地列表
export function listAnnualPass(query) {
  return request({
    url: '/index/annualPass/list',
    method: 'get',
    params: query
  })
}

// 查询年卡阵地详细
export function getAnnualPass(id) {
  return request({
    url: '/index/annualPass/' + id,
    method: 'get'
  })
}

// 新增年卡阵地
export function addAnnualPass(data) {
  return request({
    url: '/index/annualPass',
    method: 'post',
    data: data
  })
}

// 修改年卡阵地
export function updateAnnualPass(data) {
  return request({
    url: '/index/annualPass',
    method: 'put',
    data: data
  })
}

// 删除年卡阵地
export function delAnnualPass(id) {
  return request({
    url: '/index/annualPass/' + id,
    method: 'delete'
  })
}
//景区列表
export function getplace(id) {
  return request({
    url: '/index/place/list',
    method: 'GET'
  })
}

